<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	// 获得本项目的地址(例如: http://localhost:8080/MyApp/)赋值给basePath变量    
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<div id="header">
	<div id="logo">
		<h1>
			<a href="<%=basePath %>">Du's Cafe</a>
		</h1>
		<p>
			<em> magic coffee <a
				href="<%=basePath %>">阿杜</a></em>
		</p>
	</div>
	<hr />
	<!-- end #logo -->
	<div id="menu">
		<ul>
			<li><a href="<%=basePath %>" class="first">主页</a></li>
			<li class="last current_page_item"><a href="" class="first">博客管理后台</a></li>
		</ul>
	</div>
</div>